const koaRouter = require('koa-router')
const router = new koaRouter()  // 接口地址默认后缀

const homeController = require('../controller/homeController')
// useNoAthInterface

// OhbxGTqnM router Start
router.get('/',homeController.findOneHome)
// OhbxGTqnM router end

router.get('/down',async (ctx)=>{ // 渲染引擎首页
                  
          let errors = await ctx.validationErrors()
          if(errors){
            response.error(ctx,errors[0].msg)
            return
          }
            
        	let where = {}
            
			await ctx.render('down', {
				list: {
				  name:'我是名称'
				}
            })
		}
)
			
module.exports = router